home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / vbasic / grid.exe / README.TXT < prev   
Text File  |  1993-07-27  |  4KB  |  117 lines

  1. BUG: INVALID FILE FORMAT ERROR WHEN RUN VB APP'S EXE FILE     Q101261    
  2. ---------------------------------------------------------------------
  3. The information in this article applies to:
  4.  
  5. - The Microsoft Visual Basic programming system for Windows, version 3.0
  6. ---------------------------------------------------------------------
  7.  
  8. SYMPTOMS
  9. --------
  10. You may encounter the following error when running a Visual Basic
  11. executable (EXE) file:
  12.  
  13.    Invalid file format
  14.  
  15. Or you may encounter the following error when loading a Visual Basic
  16. project or form:
  17.  
  18.    Error loading '<form filename>'. A control could not be loaded due
  19.    to a load error. Continue?
  20.  
  21. CAUSE
  22. -----
  23. This problem will occur when you have installed a new version of a
  24. custom control and the internal property list of the control has
  25. incorrectly changed in a way that breaks backward compatibility.
  26.  
  27. This problem is known to occur when you have installed the Visual
  28. Basic version 3.0 GRID.VBX file over an earlier version of the grid.
  29. Specifically, the problem will occur for an existing Visual Basic
  30. application, built using a previous version of the grid, that sets the
  31. HelpContextID property of the grid.
  32.  
  33. In the case where the problem occurs when you load a project into
  34. Visual Basic that contains a grid, the problem will only occur when
  35. the form file(s) containing the grid have been saved in binary format.
  36.  
  37. This problem is also known to occur when using Visual Basic version
  38. 2.0 and the CMDIALOG.VBX control. For more information on this problem,
  39. query on the following words in the Microsoft Knowledge Base:
  40.  
  41. VBASIC and PROF and DEMO and CMDIALOG.VBX and INVALID and FILE and FORMAT
  42.  
  43. WORKAROUND
  44. ----------
  45. There are several ways that you can work around this problem:
  46.  
  47. If you are using a Visual Basic version 3.0 application and you encounter
  48. this problem, you can:
  49.  
  50.  - Acquire an updated copy of GRID.VBX from Microsoft. The grid (GRID.ZIP)
  51.    is available in the MSBASIC forum on CompuServe in LIB 5.
  52.  
  53.  - Replace the Visual Basic version 3.0 of GRID.VBX with an earlier
  54.    version. A disadvantage of this strategy is that applications requiring
  55.    the Visual Basic version 3.0 grid will not run.
  56.  
  57. If you are a developer of a Visual Basic version 3.0 application that uses
  58. the grid, you can:
  59.  
  60.  - Acquire an updated copy of GRID.VBX from Microsoft. The grid (GRID.ZIP)
  61.    is available in the MSBASIC forum on CompuServe in LIB 5. You will need
  62.    to build your application using this grid.
  63.  
  64.  - Rename GRID.VBX to a different name such as MSGRID3.VBX and rebuild the
  65.    application using the renamed grid. A disadvantage of this strategy is
  66.    that the grid will not be automatically updated when a new version of
  67.    the grid (such as a version of the grid containing bug fixes) is
  68.    released.
  69.  
  70. The following shows the date, time, size, and version number of the
  71. GRID.VBX file that leads to this problem:
  72.  
  73.   Date: 28-APR-1993
  74.   Time: 12:00 a.m.
  75.   Size: 44667
  76.   Version: Not Marked
  77.  
  78. The following shows the date, time, size, and version number of the
  79. GRID.VBX file that fixes this problem:
  80.  
  81.   Date: 15-JUNE-1993
  82.   Time: 5:26 p.m.
  83.   Size: 45136
  84.   Version: 03.00.0538
  85.  
  86. STATUS
  87. ------
  88. Microsoft has confirmed this to be a bug in the Microsoft
  89.    Visual Basic programming system for Windows, version 3.0
  90.  
  91. More Information:
  92.  
  93. Steps to Reproduce Problem
  94. --------------------------
  95. 1. Start Visual Basic or from the File menu, choose New Project (ALT, F, N)
  96.    if Visual Basic is already running. Form1 is created by default.
  97.  
  98. 2. Add a Visual Basic version 1.0 or 2.0 version of GRID.VBX to Form1.
  99.  
  100. 3. Put a grid control (Grid1) on Form1
  101.  
  102. 4. Set the HelpContextID property of Grid1 to 1 (or some non-zero value).
  103.  
  104. 5. From the File menu, choose Make EXE File (ALT, F, K) and create an EXE
  105.    called PROJECT1.EXE.
  106.  
  107. 6. Replace the older version of grid with the Visual Basic version 3.0
  108.    version of GRID.VBX, which has a date and time of 28-APR-1993 12:00 am.
  109.  
  110. 7. Run the PROJECT1.EXE file created in step 5.
  111.  
  112. You should encounter an "Invalid file format" error. If you replace the
  113. Visual Basic version 3.0 grid with the version of the grid used in Step 2
  114. and re-run PROJECT1.EXE, the program should run correctly.
  115.  
  116.  
  117.